<?php

declare (strict_types=1);
namespace App\Model;

use Hyperf\DbConnection\Model\Model;
/**
 * @property int $id 
 * @property string $title 任务名称
 * @property int $cate 营销方式 1 手机号码添加 2 名片添加
 * @property int $type 话术类型 1 自定义 2 随机模板
 * @property string $content 加粉话术
 * @property int $limit 每日上限
 * @property int $package_id 数据包id
 * @property string $end_time 加粉结束时间
 * @property string $start_time 加粉开始时间
 * @property \Carbon\Carbon $created_at 创建时间
 * @property \Carbon\Carbon $updated_at 更新时间
 */
class Task extends Model
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'task';
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['id', 'title', 'cate', 'type', 'content', 'limit', 'package_id', 'end_time', 'start_time', 'created_at', 'updated_at','is_working','status','union_id', 'wait_time'];
    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = ['id' => 'integer', 'cate' => 'integer', 'type' => 'integer', 'limit' => 'integer', 'package_id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'status' => 'integer', 'union_id' => 'integer', 'wait_time' => 'integer'];
}